<?php /* Smarty version 2.6.16, created on 2013-08-26 10:12:40
         compiled from ../templates/admin/tradesmanuser/tradesmanuserworkphoto.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/admin/tradesmanuser/tradesmanuserworkphoto.tpl', 20, false),array('modifier', 'stripslashes', '../templates/admin/tradesmanuser/tradesmanuserworkphoto.tpl', 55, false),array('modifier', 'base64_encode', '../templates/admin/tradesmanuser/tradesmanuserworkphoto.tpl', 58, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/checkall.js" /></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
'; ?>

<div class="contain">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="right_contain">
         <div class="heading_box"><?php echo ((is_array($_tmp=$this->_tpl_vars['user_details']['first_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['user_details']['last_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
's Work Photos</div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
         	<?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         <div>
          <!--Form Contain start-->
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
">
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
	                    <td align="left"><input type="button" value="Upload Work Photo" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=addtradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
';"/></td>
                        <td align="right"><input type="text" name="search" id="search" class="input41" value="<?php if ($this->_tpl_vars['search'] != ''):  echo $this->_tpl_vars['search'];  else: ?>Title<?php endif; ?>" onfocus="this.value=''" onblur="if(this.value=='')this.value='Title'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
';" />&nbsp;<input type="button" value="Back" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuser';" /></td>
                    </tr>
                </table>
            </form>
            <form name="frm" id="frm" action="" method="post" >
            <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="<?php echo $this->_tpl_vars['page']; ?>
" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="3%" align="center">#</th>
                
                <th width="50%">Title</th>
                <th width="25%">Work Photo</th>                
                <th width="20%">Action</th>
              </tr>
              <?php if ($this->_tpl_vars['userArray']): ?>
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['userArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              <tr class="inactiverow" id="tr_<?php echo $this->_tpl_vars['userArray'][$this->_sections['i']['index']]['id']; ?>
">
                <td align="center" valign="top"><?php echo $this->_tpl_vars['newid']; ?>
</td>
                <td valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['userArray'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</td>
                <td><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=100&amp;height=100&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/tradesmanjobs/<?php echo $this->_tpl_vars['userArray'][$this->_sections['i']['index']]['image']; ?>
" title="workphoto" alt="workphoto"/></td>
                <td valign="top">
                    <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=addtradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
&photoid=<?php echo ((is_array($_tmp=$this->_tpl_vars['userArray'][$this->_sections['i']['index']]['photo_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" title="Edit Work Photo"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon_edit.png"/></a></span>
                    
                    <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
&photoid=<?php echo ((is_array($_tmp=$this->_tpl_vars['userArray'][$this->_sections['i']['index']]['photo_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&action=delete&page=<?php echo $this->_tpl_vars['page']; ?>
" title="Delete Work Photo"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-delete.png" onclick="javascript:return confirm('Are you sure do you want to delete this record?');" /></a></span>
                </td>
              </tr>
              <!-- <?php echo $this->_tpl_vars['newid']++; ?>
 -->
              <?php endfor; endif; ?>
               <?php else: ?>
              <tr>
               <td colspan="4" align="center" class="error">Record Not Found</td>
              </tr>
              <?php endif; ?>
               <tr>
                <td colspan="4">
                 
                  <div class="pagination">
                  <?php if ($this->_tpl_vars['pagination']):  echo $this->_tpl_vars['pagination'];  endif; ?>
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
         </div>
            <!--Form Contain end--> 
         </div>
         </div>
        </div>
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>